Skip to content

Attempt to patch the directory list when possible#763

Merged
jviotti merged 1 commit intomainfrom
delta-list-generation
Mar 20, 2026
Merged

Attempt to patch the directory list when possible#763
jviotti merged 1 commit intomainfrom
delta-list-generation

Conversation

@jviotti
Copy link
Member

@jviotti jviotti commented Mar 20, 2026

Signed-off-by: Juan Cruz Viotti jv@jviotti.com

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Index (community)

Details
Benchmark suite Current: 5e0d2e3 Previous: 209c2fa Ratio
Add one schema (0 existing) 21 ms 21 ms 1
Add one schema (100 existing) 27 ms 36 ms 0.75
Add one schema (1000 existing) 84 ms 111 ms 0.76
Add one schema (10000 existing) 694 ms 947 ms 0.73
Update one schema (1 existing) 19 ms 19 ms 1
Update one schema (101 existing) 28 ms 29 ms 0.97
Update one schema (1001 existing) 85 ms 114 ms 0.75
Update one schema (10001 existing) 631 ms 908 ms 0.69
Cached rebuild (1 existing) 11 ms 10 ms 1.10
Cached rebuild (101 existing) 12 ms 14 ms 0.86
Cached rebuild (1001 existing) 26 ms 26 ms 1
Cached rebuild (10001 existing) 187 ms 194 ms 0.96
Index 100 schemas 122 ms 142 ms 0.86
Index 1000 schemas 1061 ms 1090 ms 0.97
Index 10000 schemas 14182 ms 14634 ms 0.97

This comment was automatically generated by workflow using github-action-benchmark.

@jviotti jviotti marked this pull request as ready for review March 20, 2026 16:16
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Index (enterprise)

Details
Benchmark suite Current: 5e0d2e3 Previous: 50e3005 Ratio
Add one schema (0 existing) 22 ms 22 ms 1
Add one schema (100 existing) 27 ms 29 ms 0.93
Add one schema (1000 existing) 81 ms 102 ms 0.79
Add one schema (10000 existing) 707 ms 922 ms 0.77
Update one schema (1 existing) 20 ms 20 ms 1
Update one schema (101 existing) 26 ms 30 ms 0.87
Update one schema (1001 existing) 80 ms 101 ms 0.79
Update one schema (10001 existing) 603 ms 837 ms 0.72
Cached rebuild (1 existing) 11 ms 12 ms 0.92
Cached rebuild (101 existing) 13 ms 13 ms 1
Cached rebuild (1001 existing) 27 ms 28 ms 0.96
Cached rebuild (10001 existing) 189 ms 189 ms 1
Index 100 schemas 121 ms 121 ms 1
Index 1000 schemas 1080 ms 1073 ms 1.01
Index 10000 schemas 14574 ms 14167 ms 1.03

This comment was automatically generated by workflow using github-action-benchmark.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@augmentcode
Copy link

augmentcode bot commented Mar 20, 2026

🤖 Augment PR Summary

Summary: This PR makes explorer directory listing generation opportunistically reuse ("patch") entries from a previously-generated listing.

Changes:

  • Load the existing directory.metapack output (when present) and index its entries by name/type.
  • When processing dependencies, reuse the prior JSON entry for unchanged schema/directory items instead of re-reading/parsing their metapack contents.
  • Preserve per-entry health scores from the prior listing when reusing entries.
  • Use BuildState::in_overlay to decide whether a dependency was rebuilt in the current run (and thus should not be patched).

Technical Notes: The patching path is gated on the destination file already existing and skips reuse for dependencies present in the current build overlay.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestion posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@jviotti jviotti force-pushed the delta-list-generation branch from 361a96b to 5e0d2e3 Compare March 20, 2026 17:28
@jviotti jviotti merged commit 3fb41b6 into main Mar 20, 2026
5 checks passed
@jviotti jviotti deleted the delta-list-generation branch March 20, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant